package com.office.supplies.mapper;

import com.office.supplies.pojo.vo.SalesProportionOfGoodsVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

/**
 * @Author admin
 * @Description TODO
 * @Date 2023/12/13/9:57
 */
@Mapper
public interface StatisticsMapper {

    /**
     * 查询营业额
     * @param map Map<String, Object>
     * @return Double
     */
    Double sumByMap(Map<String, Object> map);

    /**
     * 获取销售的商品名和对应的个数
     *
     * @return
     */
    SalesProportionOfGoodsVO getSalesGoodsNameAndCount();

    Integer sumByMapFormSale(Map<String, Object> map);
}
